import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule, Routes } from '@angular/router';

import {StaffsComponent} from '@core/baseModule/staffs/staffs.component';
import {StaffsListComponent} from '@core/baseModule/staffs/staff-lsit/staffs-list.component';
import {StaffsEditComponent} from '@core/baseModule/staffs/staffs-edit/staffs-edit.component';
import {StaffsAddComponent} from '@core/baseModule/staffs/staffs-add/staffs-add.component';


const routes: Routes = [
  {
    path: '',
    component: StaffsComponent,
    children: [
      { path: '', redirectTo: 'staffs-list', pathMatch: 'full' },
      {path: 'staffs-list', component: StaffsListComponent},
      {path: 'staffs-edit/:id', component: StaffsEditComponent},
      {path: 'staffs-add', component: StaffsAddComponent}
    ]
  }
];

@NgModule({
  imports: [CommonModule, RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class StaffsRoutingModule {}
